<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../dist//vue.js"></script>
</head>

<body>
  <div id="demo">
    <h1>测试</h1>
    <p v-if="foo">
      {{foo}}
    </p>
  </div>
  <script>
    Vue.component('comp',{
      render(h){
        return h('div','comp')
      }
    })
    const app = new Vue({
      el:'#demo',
      data(){
        return {
          foo:'测试代码'
        }
      }
    })
  </script>
</body>

</html>
